﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BI.CF.Model;
using BI.CF.Factory;
using BI.CF.IDAL;
using System.Data.SqlClient;
using System.Data;
namespace BI.CF.BLL
{
   public  class UsersBLL
    {
       static CF_Factory sql = CF_Factory.DataBaseType();
       UsersIDAL servicefac = sql.UsersFactry();
       /// <summary>
       /// 会员列表显示
       /// </summary>
       /// <param name="UserName">用户名</param>
       /// <param name="UserrRealName">真实姓名</param>
       /// <param name="PageIndex">当前页</param>
       /// <param name="PageSize">每页显示条数</param>
       /// <returns></returns>
       public PageList.Pager<UserrsModel> Show_Users(string UserName, string UserrRealName, int PageIndex, int PageSize)
       {
           return servicefac.Show_Users(UserName, UserrRealName, PageIndex, PageSize);
       }
       /// <summary>
       /// 显示会员详情
       /// </summary>
       /// <param name="UserID"></param>
       /// <returns></returns>
      public  UserrsModel Show_UserDetails(int UserID)
       {
           return servicefac.Show_UserDetails(UserID);
       }
      /// <summary>
      /// 会员财产详情
      /// </summary>
      /// <param name="UserID"></param>
      /// <returns></returns>
      public MemPropertyModel Show_UserMemProperty(int UserID)
      {
          return servicefac.Show_UserMemProperty(UserID);
      }
      /// <summary>
      /// 会员修改
      /// </summary>
      /// <param name="m"></param>
      /// <returns></returns>
      public int Users_GetUpdate(UserrsModel m)
      {
          return servicefac.Users_GetUpdate(m);
      }

    }
}
